<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>{$meta_title}｜{:C('WEB_SITE_TITLE')}</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/zui/css/zui.min.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/kindeditor/themes/default/default.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/base.css">
    <block name="style"></block>
</head>
<body>
    <nav class="navbar navbar-corethink" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-top">
                    <span class="sr-only">切换导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <php>if(C('WEB_SITE_LOGO')):</php>
                    <a class="navbar-brand" href="__ROOT__/"><img class="logo" src="{$Think.config.WEB_SITE_LOGO|get_cover='path'}"></a>
                <php>else:</php>
                    <a class="navbar-brand" href="__ROOT__/"><img class="logo" src="__ROOT__/logo.png"></a>
                <php>endif;</php>
            </div>
            <div class="collapse navbar-collapse navbar-collapse-top">
                <ul class="nav navbar-nav"></ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="__ROOT__/">首页</a></li>
                    <!-- 模版标签 -->
                    <corethink:category name="_category">
                        <li>{$_category.link}</li>
                    </corethink:category>
                    <!-- /模版标签 -->
                    <?php if($uid = is_login()): ?>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user"></i> {$uid|get_user_info='username'}
                                <span class="caret"></span>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="{:U('User/index')}"><i class="icon-home"></i> 个人中心</a></li>
                                <li><a href="{:U('Message/index')}"><i class="icon-bell-alt"></i> 消息中心</a></li>
                                <li class="divider hidden-xs"></li>
                                <li><a href="{:U('User/logout')}" class="ajax-get"><i class="icon-signout"></i> 退出登录</a></li>
                            </ul>
                        </li>
                    <?php else: ?>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i> <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li class="login"><a href="{:U('User/login')}">登录</a></li>
                                <li class="register"><a href="{:U('User/register')}">注册</a></li>
                            </ul>
                        </li>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
    </nav>

    <block name="wrap">
        <block name="header">
            <div class="panel">
                <div class="panel-body"></div>
            </div>
        </block>
        <block name="body">这里是内容</block>
    </block>

    <footer class="footer">
        <div class="container">
            <div class="row navlink">
                <div class="col-xs-12 col-sm-8">
                    <!-- 底部地图导航模版标签 -->
                    <corethink:navlink name="navlink">
                        <div class="col-xs-12 col-sm-3">
                            <dl>
                                <dt><a href="#">{$navlink.title}</a></dt>
                                <volist name="navlink._child" id="_navlink">
                                    <dd>{$_navlink.link}</dd>
                                </volist>
                            </dl>
                        </div>
                    </corethink:navlink>
                    <!-- /底部地图导航模版标签 -->
                </div>
                <div class="col-xs-12 col-sm-4">
                    <div class="logo"><a href="__ROOT__/"><img src="__ROOT__/logo.png"></a></div>
                    <div class="info">{:C('WEB_SITE_DESCRIPTION')}</div>
                </div>    
            </div>
            <div class="copyright">
                  <p>{:C('WEB_SITE_COPYRIGHT')}</p>
                <p>服务咨询请拨打：150-0517-3785</p>
              </div>
        </div>
    </footer>

    <!-- JavaScript -->
    <div class="script">
        <script type="text/javascript" src="__PUBLIC__/jquery/jquery-1.11.1.min.js" charset="utf-8"></script>
        <script type="text/javascript" src="__PUBLIC__/zui/js/zui.min.js" charset="utf-8"></script>
        <script type="text/javascript" src="__JS__/base.js" charset="utf-8"></script>
        <block name="script"></block>
    </div>
</body>
</html>
